<!DOCTYPE html>
<html lang="en">
  <head>
    <title>CURL Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Class/CURL" class="dashAnchor"></a>
    <a title="CURL Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html"> Docs</a> (83% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html"> Reference</a>
        <img id="carat" src="../img/carat.png" />
        CURL Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
          <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/AJAXObjectDriver.html">AJAXObjectDriver</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Bytes.html">Bytes</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CURL.html">CURL</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/s:C10PerfectLib6Cookie">Cookie</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Dir.html">Dir</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Encoding.html">Encoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/FastCGIServer.html">FastCGIServer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/File.html">File</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/HTTPServer.html">HTTPServer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ICU.html">ICU</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONArrayType.html">JSONArrayType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONDecode.html">JSONDecode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONDictionaryType.html">JSONDictionaryType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONEncode.html">JSONEncode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONNull.html">JSONNull</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/s:C10PerfectLib10LogManager">LogManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MimeReader.html">MimeReader</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheEvaluationContext.html">MoustacheEvaluationContext</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheEvaluationOutputCollector.html">MoustacheEvaluationOutputCollector</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheGroupTag.html">MoustacheGroupTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheParser.html">MoustacheParser</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustachePartialTag.html">MoustachePartialTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustachePragmaTag.html">MoustachePragmaTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheTag.html">MoustacheTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheTemplate.html">MoustacheTemplate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NetNamedPipe.html">NetNamedPipe</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NetTCP.html">NetTCP</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NetTCPSSL.html">NetTCPSSL</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PageHandlerRegistry.html">PageHandlerRegistry</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PerfectObject.html">PerfectObject</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PerfectObjectHandler.html">PerfectObjectHandler</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PerfectServer.html">PerfectServer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SQLite.html">SQLite</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SQLiteStmt.html">SQLiteStmt</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SessionManager.html">SessionManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SysProcess.html">SysProcess</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/UTF16Encoding.html">UTF16Encoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/UTF8Encoding.html">UTF8Encoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WebRequest.html">WebRequest</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WebResponse.html">WebResponse</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Global Variables.html">Global Variables</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v10PerfectLib17PERFECT_LIBRARIESSS">PERFECT_LIBRARIES</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v10PerfectLib10SQLITE_DBSSS">SQLITE_DBS</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/HandlerAction.html">HandlerAction</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/JSONError.html">JSONError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/MoustacheError.html">MoustacheError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/PerfectError.html">PerfectError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/SQLiteError.html">SQLiteError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/SessionResult.html">SessionResult</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/Closeable.html">Closeable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/HandlerAction.html">HandlerAction</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/PerfectObjectDriver.html">PerfectObjectDriver</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UnicodeScalar.html">UnicodeScalar</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib10FileStderrFT_CS_4File">FileStderr()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib9FileStdinFT_CS_4File">FileStdin()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib10FileStdoutFT_CS_4File">FileStdout()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib10empty_uuidFT_TVSs5UInt8S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0__">empty_uuid()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib11random_uuidFT_TVSs5UInt8S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0__">random_uuid()</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/Closeable.html">Closeable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/PageHandler.html">PageHandler</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/PerfectObjectDriver.html">PerfectObjectDriver</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/WebConnection.html">WebConnection</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Structs.html">Structs</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/GenerateFromPointer.html">GenerateFromPointer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SessionConfiguration.html">SessionConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs.html#/s:V10PerfectLib20SocketFileDescriptor">SocketFileDescriptor</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>CURL</h1>
              <div class="declaration">
                <div class="Swift">
                  <pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">CURL</span></code></pre>

                </div>
              </div>
            <p>This class is a wrapper around the CURL library. It permits network operations to be completed using cURL in a block or non-blocking manner.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC10PerfectLib4CURL12responseCodeSi"></a>
                    <a name="//apple_ref/swift/Property/responseCode" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC10PerfectLib4CURL12responseCodeSi">responseCode</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The CURLINFO_RESPONSE_CODE for the last operation.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">responseCode</span><span class="p">:</span> <span class="kt">Int</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC10PerfectLib4CURL3urlSS"></a>
                    <a name="//apple_ref/swift/Property/url" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC10PerfectLib4CURL3urlSS">url</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get or set the current URL.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">url</span><span class="p">:</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURLcFMS0_FT_S0_"></a>
                    <a name="//apple_ref/swift/Method/init()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURLcFMS0_FT_S0_">init()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initialize the CURL request.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURLcFMS0_FT3urlSS_S0_"></a>
                    <a name="//apple_ref/swift/Method/init(url:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURLcFMS0_FT3urlSS_S0_">init(url:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initialize the CURL request with a given URL.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="n">convenience</span> <span class="nf">init</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURLcFMS0_FT8dupeCurlS0__S0_"></a>
                    <a name="//apple_ref/swift/Method/init(dupeCurl:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURLcFMS0_FT8dupeCurlS0__S0_">init(dupeCurl:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Duplicate the given request into a new CURL object.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">dupeCurl</span><span class="p">:</span> <span class="kt">CURL</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL5resetFS0_FT_T_"></a>
                    <a name="//apple_ref/swift/Method/reset()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL5resetFS0_FT_T_">reset()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Clean up and reset the CURL object.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">reset</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL7performFS0_FFTSiGSaVSs5UInt8_GSaS1___T_T_"></a>
                    <a name="//apple_ref/swift/Method/perform(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL7performFS0_FFTSiGSaVSs5UInt8_GSaS1___T_T_">perform(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Perform the CURL request in a non-blocking manner. The closure will be called with the resulting code, header and body data.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">perform</span><span class="p">(</span><span class="nv">closure</span><span class="p">:</span> <span class="p">(</span><span class="kt">Int</span><span class="p">,</span> <span class="p">[</span><span class="kt">UInt8</span><span class="p">],</span> <span class="p">[</span><span class="kt">UInt8</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="p">())</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL12performFullyFS0_FT_TSiGSaVSs5UInt8_GSaS1___"></a>
                    <a name="//apple_ref/swift/Method/performFully()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL12performFullyFS0_FT_TSiGSaVSs5UInt8_GSaS1___">performFully()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Performs the request, blocking the current thread until it completes.
- returns: A tuple consisting of: Int - the result code, [UInt8] - the header bytes if any, [UInt8] - the body bytes if any</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">performFully</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt">Int</span><span class="p">,</span> <span class="p">[</span><span class="kt">UInt8</span><span class="p">],</span> <span class="p">[</span><span class="kt">UInt8</span><span class="p">])</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple consisting of: Int - the result code, [UInt8] - the header bytes if any, [UInt8] - the body bytes if any</p>

                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL7performFS0_FT_TSbSiGSqGSaVSs5UInt8__GSqGSaS1____"></a>
                    <a name="//apple_ref/swift/Method/perform()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL7performFS0_FT_TSbSiGSqGSaVSs5UInt8__GSqGSaS1____">perform()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Performs a bit of work on the current request.
- returns: A tuple consisting of: Bool - should perform() be called again, Int - the result code, [UInt8] - the header bytes if any, [UInt8] - the body bytes if any</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">perform</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt">Bool</span><span class="p">,</span> <span class="kt">Int</span><span class="p">,</span> <span class="p">[</span><span class="kt">UInt8</span><span class="p">]?,</span> <span class="p">[</span><span class="kt">UInt8</span><span class="p">]?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple consisting of: Bool - should perform() be called again, Int - the result code, [UInt8] - the header bytes if any, [UInt8] - the body bytes if any</p>

                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL8strErrorFS0_FVSC8CURLcodeSS"></a>
                    <a name="//apple_ref/swift/Method/strError(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL8strErrorFS0_FVSC8CURLcodeSS">strError(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the String message for the given CURL result code.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">strError</span><span class="p">(</span><span class="nv">code</span><span class="p">:</span> <span class="kt">CURLcode</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL7getInfoFS0_FVSC8CURLINFOTSiVSC8CURLcode_"></a>
                    <a name="//apple_ref/swift/Method/getInfo(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL7getInfoFS0_FVSC8CURLINFOTSiVSC8CURLcode_">getInfo(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the Int value for the given CURLINFO.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getInfo</span><span class="p">(</span><span class="nv">info</span><span class="p">:</span> <span class="kt">CURLINFO</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt">Int</span><span class="p">,</span> <span class="kt">CURLcode</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL7getInfoFS0_FVSC8CURLINFOTSSVSC8CURLcode_"></a>
                    <a name="//apple_ref/swift/Method/getInfo(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL7getInfoFS0_FVSC8CURLINFOTSSVSC8CURLcode_">getInfo(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the String value for the given CURLINFO.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getInfo</span><span class="p">(</span><span class="nv">info</span><span class="p">:</span> <span class="kt">CURLINFO</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt">String</span><span class="p">,</span> <span class="kt">CURLcode</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption3intVSs5Int64_VSC8CURLcode"></a>
                    <a name="//apple_ref/swift/Method/setOption(_:int:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption3intVSs5Int64_VSC8CURLcode">setOption(_:int:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets the Int64 option value.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setOption</span><span class="p">(</span><span class="nv">option</span><span class="p">:</span> <span class="kt">CURLoption</span><span class="p">,</span> <span class="nv">int</span><span class="p">:</span> <span class="kt">Int64</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CURLcode</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption3intSi_VSC8CURLcode"></a>
                    <a name="//apple_ref/swift/Method/setOption(_:int:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption3intSi_VSC8CURLcode">setOption(_:int:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets the Int option value.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setOption</span><span class="p">(</span><span class="nv">option</span><span class="p">:</span> <span class="kt">CURLoption</span><span class="p">,</span> <span class="nv">int</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CURLcode</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption1vGVSs20UnsafeMutablePointerT___VSC8CURLcode"></a>
                    <a name="//apple_ref/swift/Method/setOption(_:v:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption1vGVSs20UnsafeMutablePointerT___VSC8CURLcode">setOption(_:v:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets the poionter option value.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setOption</span><span class="p">(</span><span class="nv">option</span><span class="p">:</span> <span class="kt">CURLoption</span><span class="p">,</span> <span class="nv">v</span><span class="p">:</span> <span class="kt">UnsafeMutablePointer</span><span class="o">&lt;</span><span class="kt">Void</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CURLcode</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption1fcTGVSs20UnsafeMutablePointerT__SiSiGS2_T___Si_VSC8CURLcode"></a>
                    <a name="//apple_ref/swift/Method/setOption(_:f:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption1fcTGVSs20UnsafeMutablePointerT__SiSiGS2_T___Si_VSC8CURLcode">setOption(_:f:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets the callback function option value.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setOption</span><span class="p">(</span><span class="nv">option</span><span class="p">:</span> <span class="kt">CURLoption</span><span class="p">,</span> <span class="nv">f</span><span class="p">:</span> <span class="n">curl_func</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CURLcode</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption1sSS_VSC8CURLcode"></a>
                    <a name="//apple_ref/swift/Method/setOption(_:s:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL9setOptionFS0_FTVSC10CURLoption1sSS_VSC8CURLcode">setOption(_:s:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets the String option value.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setOption</span><span class="p">(</span><span class="nv">option</span><span class="p">:</span> <span class="kt">CURLoption</span><span class="p">,</span> <span class="nv">s</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CURLcode</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib4CURL5closeFS0_FT_T_"></a>
                    <a name="//apple_ref/swift/Method/close()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib4CURL5closeFS0_FT_T_">close()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Cleanup and close the CURL request.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">close</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-11-04)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
